package com.yczlab.mybatis.service;

import com.yczlab.mybatis.dao.DepartmentDao;
import com.yczlab.mybatis.entity.Department;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DepartmentService {

    @Autowired
    private DepartmentDao departmentDao;

    public Department findDeptById(Integer depId) {
        return departmentDao.findDeptById(depId);
    }

    public Department findDeptByIdPlus(Integer depId) {
        return departmentDao.findDeptByIdPlus(depId);
    }

    public Department findDeptByIdStep(Integer depId) {
        return departmentDao.findDeptByIdStep(depId);
    }
}
